package controle;

import java.io.Serializable;

public class Contato implements Serializable{
	
	private String email;
	private String nome;
	private String ip;
	
	public Contato(String email, String nome, String ip){
		this.email = email;
		this.nome = nome;
		this.ip = ip;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}
	
	public boolean comparaEmail(String email){
		if(email.equals(this.email)){
			return true;
		}
		else{
			return false;
		}
	}
}
